package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Billoflading;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BillofladingMapper {
    //遍历+分页+条件查询+降序、升序
    public List<Billoflading> getBillListAll(@Param("stroe") String stroe,@Param("status") String status,
                                             @Param("time") String time,@Param("numberfordelivery") String numberfordelivery,
                                             @Param("orderno") String orderno,@Param("bname") String bname,
                                             @Param("bphone") String bphone,@Param("btypeId") String btypeId,
                                             @Param("pageno") Integer pageno,@Param("pageSize") Integer pageSize);

    //查询总条数
    public int bcount(@Param("numberfordelivery") String numberfordelivery,
                      @Param("orderno") String orderno,@Param("bname") String bname,
                      @Param("bphone") String bphone,@Param("btypeId") String btypeId);
    //查看详情
    public Billoflading selbill(Integer id);

    //提货完成
    public int billsuccess(Integer id);
}
